import React from 'react';

import * as UI from 'antd-mobile';
import * as Icons from 'antd-mobile-icons';
import Cookies from 'react-cookies';
import { success, fail } from '@/tools/tools';
import request from '@/services/request';
import type business from './types/business';


// 全局挂载
React.UI = UI;
React.Icons = Icons;
React.Cookies = Cookies;
React.success = success;
React.fail = fail;
React.Http = request;

React.business = React.Cookies.load('business') as business;